package cn.xinfei.xdecision.common.datamodel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jnr.ffi.annotations.In;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;

@Data
@TableName("t_decision_result")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DecisionResult {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String requestId;
    private String tpCode;
    private Integer organId;
    private String decisionId;
    private String parentDecisionId;
    private String championDecisionId;
    private String mainDecisionId;
    private String engineCode;

    private String engineName;
    private String engineVersion;
    private String scene;
    private String state;
    private String code;
    private String result;
    private String branch;
    private Integer retry;
    private long respond;
    private String sync="ASYNC";//sync同步请求，async异步请求
    private Date createTime;
    private Date updateTime;
    /**
     * mongo快照记录的id
     */
//    @TableField(exist = false)
//    private String objectId;

    @TableField(exist = false)
    private Map<String, Object> out;
}
